package cac.fenjian.resource.ExcelExport.dto;


import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * @className: ExcelPage
 * @description: （描述这个类的作用）
 * @author: lqc
 * @date: 2023/10/19 11:33:33 周四
 * @version: 1.0
 */

@Getter
public class ExcelPage {

    private int pageSize=2;
    private int currentPage=1;
    private int totalPage;
    public ExcelPage(int dataCount){
        count(dataCount);
    };
    public void count(int dataCount){
        if(dataCount/this.pageSize==0){
            this.totalPage = dataCount/this.pageSize;
        }else{
            this.totalPage = dataCount/this.pageSize+1;
        }
    }
}
